package Calculadora;

/**
 *
 * @author Erick_Giovanni
 */
public class Coseno extends OperacionUnaria{

    public Coseno(Operacion op1) {
      super(op1);
  }

  public Number Cos() {
    return Math.cos(op1.Operar().doubleValue());
  }

  @Override
  public Number Operar() {
  return Cos();
  }
  
  @Override
  public String toString(){
      return "Cos(" + op1.toString() + ") ";
  }
   
}
